// https://leetcode.cn/problems/rotate-string/
// Created by ade on 2022/8/16.
//

class Solution {
public:
    bool rotateString(string s, string goal) {
        int len = s.size();
        for(int i = 1; i < len; i++){
            rotate(s.begin(), s.begin() + 1, s.end());
            if(s == goal) return true;
        }
        return false;
    }
};